#!/usr/bin/env bash
echo -e "\033[34m ------------------------------wsgi process---------------------------------------\033[0m"
ps -ef | grep iot_uwsgi.ini | grep -v grep
sleep 0.5
echo -e "\n----------------------------------going to close----------------------------------"
ps -ef | grep iot_uwsgi.ini | grep -v grep | awk '{print $2}' | xargs kill -9
sleep 0.5

# 以上设置内容是给上线后,服务器用的.但还没调试完美